package feng.demo.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Orders {
    private Integer ordid;
    private User user;
    private Double amount;
    private Integer payment;
    private Date paydate;
    private Integer shipment;
    private String shipno;
    private String shipname;
    private String shipphone;
    private String shipadds;
    private Date tship;
    private Date tsign;
    private Date orddate;
    private List<Orditem > orditems;

    public Orders() {
        this.user=new User();
        this.paydate=null;
        this.tship=null;
        this.tsign=null;
        this.orddate=new Date();
    }

    public Integer getOrdid() {
        return ordid;
    }

    public void setOrdid(Integer ordid) {
        this.ordid = ordid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getPayment() {
        return payment;
    }

    public void setPayment(Integer payment) {
        this.payment = payment;
    }

    public Date getPaydate() {
        return paydate;
    }

    public void setPaydate(Date paydate) {
        this.paydate = paydate;
    }

    public Integer getShipment() {
        return shipment;
    }

    public void setShipment(Integer shipment) {
        this.shipment = shipment;
    }

    public String getShipno() {
        return shipno;
    }

    public void setShipno(String shipno) {
        this.shipno = shipno;
    }

    public String getShipname() {
        return shipname;
    }

    public void setShipname(String shipname) {
        this.shipname = shipname;
    }

    public String getShipphone() {
        return shipphone;
    }

    public void setShipphone(String shipphone) {
        this.shipphone = shipphone;
    }

    public String getShipadds() {
        return shipadds;
    }

    public void setShipadds(String shipadds) {
        this.shipadds = shipadds;
    }

    public Date getTship() {
        return tship;
    }

    public void setTship(Date tship) {
        this.tship = tship;
    }

    public Date getTsign() {
        return tsign;
    }

    public void setTsign(Date tsign) {
        this.tsign = tsign;
    }

    public Date getOrddate() {
        return orddate;
    }

    public void setOrddate(Date orddate) {
        this.orddate = orddate;
    }

    public List<Orditem> getOrditems() {
        return orditems;
    }

    public void setOrditems(List<Orditem> orditems) {
        this.orditems = orditems;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "ordid=" + ordid +
                ", user=" + user +
                ", amount=" + amount +
                ", payment=" + payment +
                ", paydate=" + paydate +
                ", shipment=" + shipment +
                ", shipno='" + shipno + '\'' +
                ", shipname='" + shipname + '\'' +
                ", shipphone='" + shipphone + '\'' +
                ", shipadds='" + shipadds + '\'' +
                ", tship=" + tship +
                ", tsign=" + tsign +
                ", orddate=" + orddate +
                ", orditems=" + orditems +
                '}';
    }
}
